import {
  Button,
  Icon,
  PasswordInput,
  Calendar,
  List,
  Swipe,
  SwipeItem,
  Grid,
  PullRefresh,
  ActionSheet,
  Empty,
  Collapse,
  CollapseItem,
  GridItem,
  ImagePreview,
  Skeleton,
  Checkbox,
  CheckboxGroup,
  Tab,
  Tabs,
  Divider,
  RadioGroup,
  Radio,
  NumberKeyboard,
  Cell,
  NoticeBar,
  Uploader,
  Dialog,
  Form,
  Field,
  CellGroup,
  NavBar,
  Tabbar,
  TabbarItem,
  Area,
  Popup,
  Col,
  Row,
  Loading,
  Toast,
  Lazyload,
  Tag,
  Switch,
  Search,
  IndexBar,
  IndexAnchor,
} from 'vant';
import { Image as VanImage } from 'vant';
export default {
  install(Vue) {
    Vue.use(Button)
      .use(Icon)
      .use(VanImage)
      .use(Calendar)
      .use(List)
      .use(Swipe)
      .use(SwipeItem)
      .use(PullRefresh)
      .use(ActionSheet)
      .use(Empty)
      .use(PasswordInput)
      .use(Collapse)
      .use(CollapseItem)
      .use(ImagePreview)
      .use(Skeleton)
      .use(Grid)
      .use(Checkbox)
      .use(CheckboxGroup)
      .use(Divider)
      .use(RadioGroup)
      .use(Radio)
      .use(GridItem)
      .use(Tab)
      .use(Tabs)
      .use(NumberKeyboard)
      .use(NoticeBar)
      .use(Cell)
      .use(Uploader)
      .use(Dialog)
      .use(Form)
      .use(Field)
      .use(CellGroup)
      .use(IndexAnchor)
      .use(NavBar)
      .use(Tabbar)
      .use(TabbarItem)
      .use(Area)
      .use(Popup)
      .use(Col)
      .use(Row)
      .use(Loading)
      .use(Toast)
      .use(Lazyload)
      .use(Tag)
      .use(Switch)
      .use(Search)
      .use(IndexBar);
    Vue.use(Lazyload, { lazyComponent: true });
  },
};
